Micron Document
🎖️GitЯра🎖️

Commit c866f60b59fc2678c348b333a0f52ae2deb39831


Parents : 10bc58d
Author : James Rich <2199651+jamesarich@users.noreply.github.com>
Signature : Signature validation error
Date : 2026-04-17T13:36:33-05:00
Committer : GitHub <noreply@github.com>
Date : 2026-04-17T18:36:33Z

diag(r8): disable minify for release builds (animation-freeze diagnostic) (#5174)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Changes

1 files changed, 16 insertions(+), 2 deletions(-)


Diff

diff --git a/build-logic/convention/src/main/kotlin/AndroidApplicationConventionPlugin.kt b/build-logic/convention/src/main/kotlin/AndroidApplicationConventionPlugin.kt
index 38cc021a7e..81729f5a04 100644
--- a/build-logic/convention/src/main/kotlin/AndroidApplicationConventionPlugin.kt
+++ b/build-logic/convention/src/main/kotlin/AndroidApplicationConventionPlugin.kt
@@ -41,8 +41,22 @@ class AndroidApplicationConventionPlugin : Plugin<Project> {
buildTypes {
getByName("release") {
- isMinifyEnabled = true
- isShrinkResources = true
+ // DIAGNOSTIC BUILD (internal.60): R8 is fully disabled to prove
+ // whether the Compose animation freeze observed since CMP 1.11.0-beta02
+ // is caused by R8 (shrinking / consumer-rule -assumenosideeffects /
+ // resource shrinking) or by a CMP runtime bug independent of R8.
+ //
+ // - If animations work in this build → R8 is the cause; follow up with
+ // a narrower diag (weaken Compose -keep rules to allow class-merging,
+ // or toggle isShrinkResources only).
+ // - If animations remain frozen → R8 is innocent; the bug is in
+ // compose-multiplatform 1.11.0-beta02 itself. File upstream and
+ // downgrade / pin.
+ //
+ // REVERT once the diagnostic is concluded — release builds MUST ship
+ // with R8 enabled.
+ isMinifyEnabled = false
+ isShrinkResources = false
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
rootProject.file("config/proguard/shared-rules.pro"),

Served by rngit 1.5.0 - Generated in 0.04s